package com.example.demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 报名类
 * </p>
 *
 * @author cy
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Apply extends Model<Apply> {

    private static final long serialVersionUID = 1L;

    public static final int NO_PASS=-1;

    public static final int CHECK=0;

    public static final int PASS=1;

    @TableId(value = "apply_id", type = IdType.AUTO)
    //报名id
    private Integer applyId;
    //报名需求id
    @JsonProperty("dId")
    private Integer dId;
    //报名用户id
    private Integer uId;
    //用户报价
    private BigDecimal price;
    //用户介绍
    private String intro;
    //0代表报名中，-1代表不通过，1代表通过
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.applyId;
    }

}
